package zjh.msg.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import zjh.msg.entity.User;

public interface UserMapper {
    int insert(User record);

    List<User> selectAll();

    @Select("select * from user where username = #{name} and password= #{pwd}")
    User login(@Param("name") String name, @Param("pwd") String pwd);
}